<?php

/**
 * @author shuang
 * @date 2017-5-30 10:58:38
 */
use common\components\MTools;
?>
<?php if ($sliderData): ?>
    <div class="top-banner">
        <ul>
            <?php foreach ($sliderData as $item): ?>
                <li>
                    <a href="<?php echo $item["url"]; ?>">
                        <img src="<?php echo MTools::getWebPath($item["image"]); ?>" width="400" height="300">
                    </a>
                </li>
            <?php endforeach; ?>
        </ul>
    </div>
<?php endif; ?>